package com.android.UrbanRemix;

import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.TimeZone;

import com.android.UrbanRemix.HttpFileUploader;
import com.android.UrbanRemix.UrbanRemix_New;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.DialogInterface.OnClickListener;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.os.SystemClock;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class ExitScreen extends Activity {
	Button uploadNowButton, quitButton;
	public String username;
	public String password;

	Context myContext;

	public void onCreate(Bundle savedInstanceState) {

		Bundle b = this.getIntent().getExtras();

		super.onCreate(savedInstanceState);
		setContentView(R.layout.exit);

		uploadNowButton = (Button) findViewById(R.id.UploadNow);
		quitButton = (Button) findViewById(R.id.Quit);

		myContext = this;

		uploadNowButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				finish();
			}

		});

		quitButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				Intent intent = new Intent(myContext, UrbanRemix_New.class);
				startActivity(intent);
			}

		});

	}

}